package org.vy.app.ajax;

import java.util.Calendar;

public class Test {
	public static void main(String[] s){
		Calendar cal = Calendar.getInstance();
		System.out.println((cal.get(Calendar.WEEK_OF_YEAR)%6.5) +"   "+ cal.get(Calendar.DATE));
		cal = Calendar.getInstance();
		cal.add(Calendar.DATE, -20);
		System.out.println((cal.get(Calendar.WEEK_OF_YEAR)%6.5) +"   "+ cal.get(Calendar.DATE));
		cal = Calendar.getInstance();
		cal.add(Calendar.DATE, -14);
		System.out.println((cal.get(Calendar.WEEK_OF_YEAR)%6.5) +"   "+ cal.get(Calendar.DATE));
		cal = Calendar.getInstance();
		cal.add(Calendar.DATE, -4);
		System.out.println((cal.get(Calendar.WEEK_OF_YEAR)%6.5) +"   "+ cal.get(Calendar.DATE));
		cal = Calendar.getInstance();
		cal.add(Calendar.DATE, 4);
		cal.add(Calendar.MONTH, 1);
		System.out.println((cal.get(Calendar.WEEK_OF_YEAR)%6.5) +"   "+ cal.get(Calendar.WEEK_OF_YEAR));
	}
}
